Skip to content

feat(workbench): 无桌面会话关联工作区 / attach authorized projects to headless conversations - #11

Draft
Facetomyself wants to merge 4 commits into
feat/web-workbench-git-viewfrom
feat/web-workbench-session-workspaces
Draft

Facetomyself wants to merge 4 commits into
feat/web-workbench-git-viewfrom
feat/web-workbench-session-workspaces

Conversation

@Facetomyself

@Facetomyself Facetomyself commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #10. Refs sqfcyily#67. This slice distinguishes browsing a project, persistently attaching it to one conversation, and manually opening that project’s files or notes. None of them implicitly submits data to a model.

  • A regular conversation keeps its explicit project. New role chats inherit the role’s registered project on creation; later role changes or replays do not silently replace it. Removed/replaced directories retain only their old opaque identity and can still be detached when the mount is missing.
  • The original desktop-style project chip/file dialog and scoped memory editor are used. A login rechecks the confirmed binding before opening the actual files or notes. Conflicts, an in-flight turn, expired logins and unavailable grants have distinct states and no automatic write retry.
  • Confirmed owner mutations are conditionally written into the native session format, with strict readback and fresh revisions across attach/detach. The absolute native path is not exposed through HTTP or WS. Role lookup for an ordinary model turn does not enumerate projects. Neither agent file tools, Git history access nor execution is granted by a conversation binding. Imported complex histories retain their read-only boundaries.
  • Tests cover unchanged old records, two logins, real model-adapter payload isolation, no duplicate charge, attachments/deliveries, same-name replacement and persistence. A real Chrome step and a separately packaged, no-network native linux/amd64 job test the whole flow without changing a target machine. Hosted results to be attached below. The unrelated optional feat(browser): 隔离人工网页接管与工作台身份 / isolate manual browser handoff from workbench credentials #7 human browser worker remains an independent unfinished gate.

Verified at 6eae2a1

  • Node 22 and the two-window Chrome step: 103/103 workbench checks, 314/314 headless checks. Independent owner logins bound and unbound a project, reloaded, switched conversations, inspected explicit file and note access, started a real role chat, and rejected the replacement directory. No model or Git operation was triggered by the binding. The inherited optional second-browser handoff remains a distinct failing step, not a failure of ordinary UI sessions.
  • Actual linux/amd64 production image, separate Docker job: config digest sha256:25475492d6d210f475792bfe9c2ed9ba93d24f164678cb7a91519d521500ddc5. Non-root Node 22 ran with network disabled, a read-only root, zero extra capabilities and no ports. Genuine enrollment, explicit and inherited scopes, persistence across fresh containers, rejection of old owner cookies, unavailable grant with the mount removed, and detachment all passed. Synthetic resources were removed. This was a hosted runner; no deployment or cleanup was attempted on the older target host in this slice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant